﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EasyComm.Client
{
    public partial class ChatWindowForm : Form
    {
        public ChatWindowForm()
        {
            InitializeComponent();
        }

        private void btnSend_Click(object sender, EventArgs e)
        {
            if (this.txtBoxNewMsgChatWindow.Text != "")
            {
                this.richTextBoxShowMsgChatWindow.Text += this.Text + ": " + this.txtBoxNewMsgChatWindow.Text.Trim() + Environment.NewLine;
                this.txtBoxNewMsgChatWindow.Text = "";
            }
            this.txtBoxNewMsgChatWindow.Focus();
        }

        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ChatWindowForm_Load(object sender, EventArgs e)
        {
            txtBoxNewMsgChatWindow.Focus();
        }
    }
}
